<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><strong>添加合同</strong></title>
<link href="/estate/css/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/estate/js/lhgcore.js"></script>
<script type="text/javascript" src="/estate/js/lhgcalendar.js"></script>
<script type="text/javascript">
	
	function submitVo(form){
		form.action="/estate/admin/contractAction.action?method=add";
   		form.submit();
	}
</script>
</head>
<body>
<form name="form1" method="post" action="">
<table border="0" cellpadding="0" cellspacing="0" style="background-image:url(/estate/images/gtbg.gif) " width="100%">
    <tr>
      <td width="50%" height="82" rowspan="2"><img src="/estate/images/guide_01.gif"></td>
      <td width="50%" style="background-image:url(/estate/images/guide_02.gif);color:#cc1212; font-size:16px; font-weight:bold; text-align:right; padding-right:50px; letter-spacing:1px; " height="39"><strong>合同管理</strong></td>
    </tr>
     <tr><td width="50%" style="background-image:url(/estate/images/guide_03.gif); height:43px;" align="center" valign="middle">
	  <table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
          <td><input type="submit" name="Submit1" onFocus="this.blur();" class="button4" value="添加" onclick="submitVo(form1)"> </td>
          <td><input type="reset"  name="Submit2" onFocus="this.blur();" class="button4" value="重置" > </td>
          <td><input type="submit" name="Submit3" onFocus="this.blur();" class="button4" value="打印" > </td>
        </tr>
      </table></td>
    </tr>
</table><br>
<table width="60%" align="center" border="0" cellspacing="0" cellpadding="0" class="main">
  <tr align="center">
    <td colspan="4" class="tableTitle">添加合同</td>
  </tr>
  <tr>
    <td width="15%" align="right" class="two" ><label style="color:red;">*(必填)</label>合同编号：</td>
    <td width="33%" class="two" align="left"><input name="number" id="number" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td align="right" class="two"><label style="color:red;">*(必填)</label>合同名称：</td>
    <td class="two" align="left"><input name="name" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td width="20%" align="right" class="two">合同类型：</td>
    <td width="32%" class="two" align="left">
    	<select class="select" name="type">
    		<optgroup label="请选择类型" >
	    		<option value="招标代理">招标代理</option>
	    		<option value="造价咨询">造价咨询</option>
	    		<option value="全管理">全管理</option>
    		</optgroup>
    	</select>
    </td>
  </tr>
  
  <tr>
    <td align="right" class="two">客户名称：</td>
    <td class="two" align="left"><input name="clientName" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td align="right" class="two">客户电话：</td>
    <td class="two" align="left"><input name="clientPhone" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td width="15%" align="right" class="two" >合同金额(元)：</td>
    <td width="33%" class="two" align="left"><input name="money" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td width="20%" align="right" class="two">签署人：</td>
    <td width="32%" class="two" align="left">
    <select class="select" name="signUser">
    		<optgroup label="请选择签署人" >
    		<s:iterator value="#request.userMenu">
            <option value=<s:property value="id"/>><s:property value="name"/></option>
            </s:iterator>
    		</optgroup>
     </select>
    </td>
  </tr>
  
  
  <tr>
    <td width="15%" align="right" class="two" >签署电话：</td>
    <td width="33%" class="two" align="left"><input name="signPhone" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td width="15%" align="right" class="two" >签署地址：</td>
    <td width="33%" class="two" align="left"><input name="signAddress" type="text" class="input"></td>
  </tr>
  
  <tr>
    <td align="right" class="two">签署日期：</td>
    <td class="two" align="left">
    	<input type="text" id="wd" onclick="J.calendar.get();" name="signDate" class="select"/>
	</td>
  </tr>
  
  <tr>
    <td width="20%" align="right" class="two">签署状态：</td>
    <td width="32%" class="two" align="left">
    	<select class="select" name="signState">
    		<optgroup label="请选择状态" >
	    		<option value="待签">待签</option>
	    		<option value="缓签">缓签</option>
	    		<option value="已签署">已签署</option>
    		</optgroup>
    	</select>
    </td>
  </tr>
  
  <tr>
    <td width="20%" align="right" class="two">合同状态：</td>
    <td width="32%" class="two" align="left">
    	<select class="select" name="state">
    		<optgroup label="请选择状态" >
	    		<option value="待审">待审</option>
	    		<option value="已审">已审</option>
	    		<option value="编辑">编辑</option>
    		</optgroup>
    	</select>
    </td>
  </tr>
  
  <tr>
    <td align="right" class="two"><label style="color:red;">*(必填)</label>创建人：</td>
    <td width="32%" class="two" align="left">
    <select class="select" name="createUser">
    		<optgroup label="请选择创建人" >
    		
    		<s:iterator value="#request.userMenu">
            <option value=<s:property value="id"/>><s:property value="name"/></option>
            </s:iterator>
    		</optgroup>
     </select>
    </td>
  </tr>
  
  
  <tr>
  	<td colspan="2" class="two" align="center">
  		<input type="button" name="Submit4" onFocus="this.blur();" value="添加" class="button2" onclick="submitVo(form1)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  		<input type="reset" name="Submit5" onFocus="this.blur();" value="重置" class="button2"> 
  	</td>
  </tr>
 
  <tr><td class="two" colspan="2">&nbsp;</td></tr>
</table><br>
</form>
</body>
<script language="javascript">
  function doit(){
    window.open('additional.htm','','')
  }
</script>
</html>
